<?php 
class DbConnect{
		public function getConnection(){
			$db = mysql_connect('localhost', 'root', '');
			if (!$db)
                  {
                   die('Could not connect: ' . mysql_error());
                   }
			mysql_select_db('my_fyp',$db);
			return $db;
		}
}


?>